package com.yunshipei.core.model;

import android.os.Parcel;
import android.os.Parcelable;

public class DeveloperAppModel implements Parcelable {
    private String url;
    private String appPath;
    private String runtimePath;

    public DeveloperAppModel(String url, String appPath, String runtimePath) {
        this.url = url;
        this.appPath = appPath;
        this.runtimePath = runtimePath;
    }

    protected DeveloperAppModel(Parcel in) {
        url = in.readString();
        appPath = in.readString();
        runtimePath = in.readString();
    }

    public static final Creator<DeveloperAppModel> CREATOR = new Creator<DeveloperAppModel>() {
        @Override
        public DeveloperAppModel createFromParcel(Parcel in) {
            return new DeveloperAppModel(in);
        }

        @Override
        public DeveloperAppModel[] newArray(int size) {
            return new DeveloperAppModel[size];
        }
    };

    public String getUrl() {
        return url;
    }

    public String getAppPath() {
        return appPath;
    }

    public String getRuntimePath() {
        return runtimePath;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(url);
        dest.writeString(appPath);
        dest.writeString(runtimePath);
    }
}
